<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>${session.SOFT_NAME }_智能办公系统</title>
<meta name="description" content="Dashboard" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%include("../../resapi/style.html"){}%>
<link rel="stylesheet" href="/module/zTree_v3/css/bootstrapStyle/bootstrapStyle.css" type="text/css">
<link href="/module/jeDate/jedate.css" rel="stylesheet" />
</head>
<body style="overflow-y: auto;">
	<div class="page-body" style="padding: 0px">
		<div class="page-container">
			<div class="widget-header bordered-bottom bordered-palegreen">
				<span class="widget-caption">发布公告</span>
			</div>
			<div class="widget-body" style="padding-top: 0px">
				<form class="form-horizontal form-bordered" id="from">
					<input type="hidden" id="noticeId" name="noticeId">
					<div class="form-group">
						<label class="col-sm-1 control-label no-padding-right">公告标题：</label>
						<div class="col-sm-5">
							<input type="text" class="form-control" id="noticeTitle" name="noticeTitle" placeholder="公告标题" maxlength="200">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-1 control-label no-padding-right">公告类型：</label>
						<div class="col-sm-5">
							<select id="noticeType" name="noticeType" class="form-control" style="border-radius: 0px;"></select>
						</div>
					</div>
					<div class="form-group" id="redheaddiv" style="display: none">
						<label class="col-sm-1 control-label no-padding-right">套用红头：</label>
						<div class="col-sm-5">
							<select id="templateType" name="templateType" class="form-control" style="border-radius: 0px;"></select>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-1 control-label no-padding-right">是否置顶 ：</label>
						<div class="col-sm-5">
							<div class="control-group">
								<label> <input type="radio" class="colored-danger" checked="checked" value="0" name="isTop"> <span class="text">顺序</span>
								</label> <label> <input type="radio" class="colored-danger" value="1" name="isTop"> <span class="text">置顶</span>
								</label>
							</div>
						</div>
					</div>
						<div class="form-group">
						<label class="col-sm-1 control-label no-padding-right">人员权限：</label>
						<div class="col-sm-5">
								<textarea id="userPriv" name="userPriv" placeholder="用户" class="form-control" readonly="readonly" opt-id="userPriv" onclick="selectUser(this,'true');"></textarea>
						</div>
						<a style="cursor: pointer;" onclick="clearSelect('userPriv')">清空</a>
						</div>
						<div class="form-group">
						<label class="col-sm-1 control-label no-padding-right">部门权限：</label>	
						<div class="col-sm-5">
								<textarea id="deptPriv" name="deptPriv" placeholder="部门" class="form-control" readonly="readonly" opt-id="deptPriv" onclick="selectDept(this,'true');"></textarea>
							</div>
							<a style="cursor: pointer;" onclick="clearSelect('deptPriv')">清空</a>
							</div>
						<div class="form-group">
						<label class="col-sm-1 control-label no-padding-right">职务权限：</label>	
						<div class="col-sm-5">	
							
								<textarea id="leavePriv" name="leavePriv" placeholder="行政级别" class="form-control" readonly="readonly" opt-id="leavePriv" onclick="selectUserLevel(this,'true');"></textarea>
						</div>
						<a style="cursor: pointer;" onclick="clearSelect('leavePriv')">清空</a>
					</div>
					<div class="form-group">
						<label class="col-sm-1 control-label no-padding-right">公告内容：</label>
						<div class="col-sm-10">
							<div id="content" style="height: 300px"></div>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-1 control-label no-padding-right">定时发布：</label>
						<div class="col-sm-2" style="position: relative;">
							<input type="text" class="form-control" id="sendTime" readonly="readonly" name="sendTime" placeholder="定时发布" style="cursor: pointer;">
						</div>
						<div class="col-sm-3 control-label" style="text-align: left; color: red">注：通知显示时间</div>
					</div>
					<div class="form-group">
						<label class="col-sm-1 control-label no-padding-right">终止时间：</label>
						<div class="col-sm-2" style="position: relative;">
							<input type="text" class="form-control" id="endTime" readonly="readonly" name="endTime" placeholder="终止时间" style="cursor: pointer;">
						</div>
						<label class="col-sm-4 control-label" style="text-align: left; color: red"> 注：公告系统显示的结束时间 </label>
					</div>
					<div class="form-group">
						<label class="col-sm-1 control-label no-padding-right">相关附件 ：</label>
						<div class="col-sm-5">
							<div style="padding-top: 4px;">
								<div id="show_noticeattach"></div>
								<a class="addfile" href="javascript:void(0)">附件上传 <input data_value="" type="file" onchange="fileUpLoad('notice','noticeattach');" hidefocus="true" size="1"
									id="noticeattach" name="noticeattach" class="addfile" multiple="multiple"></a>
							</div>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-1 control-label no-padding-right">附件权限 ：</label>
						<div class="col-sm-5">
							<div class="control-group" style="padding-top: 5px;">
							 <label> <input type="radio" class="colored-danger" value="1" name="attachPriv"> <span class="text">在线阅读</span>
								</label>
								<label> <input type="radio" class="colored-danger" value="3" name="attachPriv"> <span class="text">允许下载</span>
								</label> <label> <input type="radio" class="colored-danger" value="2" name="attachPriv"> <span class="text">允许打印</span>
								</label>
							</div>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-1 control-label no-padding-right" style="line-height: 34px;">消息提醒 ：</label>
						<div class="col-sm-5" style="padding-left: 0px;">
							<div class="checkbox" id="msgType"></div>
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-offset-1 col-sm-5">
							<a id="editbut" href="javascript:void(0);" class="btn btn-primary">修&nbsp;&nbsp;改</a>
							<a href="javascript:void(0);history.go(-1);" class="btn btn-palegreen">返&nbsp;&nbsp;回</a>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
	<div id="orgselectdiv"></div>
</body>
<%include("../../resapi/sysjs.html"){}%>
<script type="text/javascript">
var noticeId = "${parameter.noticeId}";
</script>
<script type="text/javascript" src="/module/fileupload/pageoffice.js" id="po_js_main"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.core.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.excheck.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.exedit.js"></script>
<script type="text/javascript" src="/module/fileupload/ajaxfileupload.js"></script>
<script type="text/javascript" src="/module/fileupload/fileupload.js"></script>
<script type="text/javascript" src="/module/jeDate/jeDate.js"></script>
<script type="text/javascript" src="/assets/js/editors/summernote/summernote.js"></script>
<script type="text/javascript" src="/module/orgselect/orgselect.js"></script>
<script type="text/javascript" src="/gobal/js/page/notice/editnotice.js"></script>
</html>